Skip to content

fix: modeling solidification workflow and image#4830

Open
MohammedAnsys wants to merge 5 commits intomainfrom
fix/solidification_example
Open

fix: modeling solidification workflow and image#4830
MohammedAnsys wants to merge 5 commits intomainfrom
fix/solidification_example

Conversation

@MohammedAnsys
Copy link
Copy Markdown
Collaborator

The solidification example had visualization issues, along with a floating-point exception error.

Changes:

  • Use Scene object for proper visualization

  • Add case reload before transient simulation

  • Fix duplicate contour naming

  • Update static image

Impact: Correct visualizations and proper workflow execution

Copilot AI review requested due to automatic review settings January 20, 2026 10:57
@MohammedAnsys MohammedAnsys self-assigned this Jan 20, 2026
@github-actions github-actions Bot added documentation Documentation related (improving, adding, etc) examples Publishing PyFluent examples labels Jan 20, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the solidification modeling workflow example to fix visualization issues and a floating-point exception error by improving the graphics rendering approach and ensuring proper case state management.

Changes:

  • Replaced direct contour display with Scene-based visualization for proper rendering
  • Added case reload before transient simulation to prevent floating-point exceptions
  • Renamed duplicate contour instance to avoid naming conflicts

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread examples/00-fluent/Modeling_solidification_workflow.py
Comment thread examples/00-fluent/Modeling_solidification_workflow.py
@MohammedAnsys MohammedAnsys changed the title Update modeling solidification workflow and image fix: modeling solidification workflow and image Jan 20, 2026
@github-actions github-actions Bot added the bug Issue, problem or error in PyFluent label Jan 20, 2026
@MohammedAnsys MohammedAnsys enabled auto-merge (squash) January 21, 2026 04:44
Copilot AI review requested due to automatic review settings May 1, 2026 15:43
@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +372 to 373
solver.settings.file.read_case_data(file_name="steady_state")
solver_general_settings.solver.time = "unsteady-1st-order" # First-order implicit
Copy link

Copilot AI May 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

read_case_data(file_name="steady_state") passes a name without a .cas* extension. In the settings API, the corresponding data filename is inferred by replacing .cas with .dat; without .cas in the name, the case/data arguments can end up identical, which can make Fluent look for the wrong data file. Consider writing/reading with an explicit case filename like steady_state.cas.h5 (so the matching .dat.h5 is derived correctly).

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Issue, problem or error in PyFluent documentation Documentation related (improving, adding, etc) examples Publishing PyFluent examples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants